﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 小鬼首领:Minion
    {
        public 小鬼首领():base()
        {
            Star = 3;
            Attack = 2;
            Health = 4;
            Race = race.devil;
        }


        public override void Getdamaged(int n)
        {
            if (Skills[3])
            {
                base.Getdamaged(n);
                return;
            }
            pool.Spawn(pool, Place + 1, new 小鬼());
            base.Getdamaged(n);
        }


        public override Minion NewOne()
        {
            return new 小鬼首领();
        }
    }


    class 小鬼首领_金色 : 小鬼首领
    {
        public 小鬼首领_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override void Getdamaged(int n)
        {
            if (Skills[3])
            {
                base.Getdamaged(n);
                return;
            }
            pool.Spawn(pool, Place + 1, new 小鬼_金色());
            base.Getdamaged(n);
        }


        public override Minion NewOne()
        {
            return new 小鬼首领_金色();
        }
    }
}
